home *** CD-ROM | disk | FTP | other *** search
/ Delphi Programmer's Power Pack / Delphi Volume 1.iso / e_to_l / iacs / setup.arv / UNIT4.PAS < prev   
Encoding:
Pascal/Delphi Source File  |  1996-09-15  |  999 b   |  48 lines

  1. unit Unit4;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, Buttons, Iabuttns, Iaconn, Iaexctls, Spin, Mask;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     IAMaskEdit1: TIAMaskEdit;
  12.     IASpinEdit1: TIASpinEdit;
  13.     IAScrollBar1: TIAScrollBar;
  14.     IASource1: TIASource;
  15.     IASRBitBtn1: TIASRBitBtn;
  16.     IASRBitBtn2: TIASRBitBtn;
  17.     Label1: TLabel;
  18.     Label2: TLabel;
  19.     Label3: TLabel;
  20.     Label4: TLabel;
  21.     procedure FormCreate(Sender: TObject);
  22.     procedure IAScrollBar1Change(Sender: TObject);
  23.   private
  24.     { Private declarations }
  25.   public
  26.     { Public declarations }
  27.   end;
  28.  
  29. var
  30.   Form1: TForm1;
  31.  
  32. implementation
  33.  
  34. {$R *.DFM}
  35.  
  36. procedure TForm1.FormCreate(Sender: TObject);
  37. begin
  38.   IASource1.UpdateControls;
  39.   Label1.Caption:=IntToStr(IAScrollBar1.Position);
  40. end;
  41.  
  42. procedure TForm1.IAScrollBar1Change(Sender: TObject);
  43. begin
  44.   Label1.Caption:=IntToStr(IAScrollBar1.Position);
  45. end;
  46.  
  47. end.
  48.